package main

import "fmt"

var c chan string

func Pingpong(){
	i := 0
	for{
		fmt.Println(<-c)
		c<- fmt.Sprintf("From Pingpong: Hi, #%d", i)
		i++
	}
}
func main() {
	c = make(chan string)
	go Pingpong()
	for i:=0; i< 10; i++{
		c <- fmt.Sprintf("from main : hello , #%s", i)
		fmt.Println(<-c)
	}

}
